import numpy as np

a = np.array([2, 16, 11, 9, 5, 3, 27, 19, 30])
arr = a[a > 10]
arr1 = arr[arr < 20]
print(arr1)
